package fr.gestionimmoejb.model;

import java.io.Serializable;
import java.util.Set;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.OneToMany;

@Entity
public class Client implements Serializable {
	@Id
	private Integer id;

	private String nom;

	private String prenom;

	private String adresse;

	private Integer codepostal;

	private String ville;

	private String commentaire;

	@OneToMany(mappedBy="idClient")
	private Set<Reservation> reservationCollection;

	private static final long serialVersionUID = 1L;

	public Client() {
		super();
	}

	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getNom() {
		return this.nom;
	}

	public void setNom(String nom) {
		this.nom = nom;
	}

	public String getPrenom() {
		return this.prenom;
	}

	public void setPrenom(String prenom) {
		this.prenom = prenom;
	}

	public String getAdresse() {
		return this.adresse;
	}

	public void setAdresse(String adresse) {
		this.adresse = adresse;
	}

	public Integer getCodepostal() {
		return this.codepostal;
	}

	public void setCodepostal(Integer codepostal) {
		this.codepostal = codepostal;
	}

	public String getVille() {
		return this.ville;
	}

	public void setVille(String ville) {
		this.ville = ville;
	}

	public String getCommentaire() {
		return this.commentaire;
	}

	public void setCommentaire(String commentaire) {
		this.commentaire = commentaire;
	}

	public Set<Reservation> getReservationCollection() {
		return this.reservationCollection;
	}

	public void setReservationCollection(Set<Reservation> reservationCollection) {
		this.reservationCollection = reservationCollection;
	}

}
